{include file="public/header"/}
{include file="public/left"/}
<style type="text/css">
    .toast-top-right{top: 56px!important;}
</style>
<div class="content-wrapper">
	<!-- 多标签后台 -->
    <nav class="navbar navbar-default eacoo-tab-nav" role="navigation">
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-left">
                <li><a href="#" id="tab-left"><i class="fa fa-caret-left"></i></a></li>
            </ul>
            <div class="eacoo-tab-wrap clearfix">
                <ul class="nav navbar-nav nav-close eacoo-tab">
                    <li class="active" >
                        <a href="#navtab-collapse-1" role="tab" data-toggle="tab"><i class="fa fa-dashboard"></i> <span>首页</span></a>
                    </li>
                </ul>
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#" id="tab-right"><i class="fa fa-caret-right"></i></a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">操作 <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="#" class="close-all">关闭所有</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
     <div class="tab-content eacoo-tab-content">

		<div role="tabpanel" class="dashboard-container tab-pane fade in active" id="navtab-collapse-1">
	   		<iframe name="navtab-collapse-1" src="{:url('admin/dashboard/index')}" class="iframe"></iframe>
	  	</div><!--dashboard end-->

	</div>
</div>

<!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
    </ul>
    <!-- Tab panes -->
    <div class="tab-content" id="control-sidebar-tab-content">

      <!-- /.tab-pane -->
    </div>
  </aside>

{include file="public/footer"/}
<script type="text/javascript">
    loadHeaderModulesMenus('admin',1);//加载顶部模块菜单
    loadTopMenus();//加载收藏菜单
    loadSidebarMenus();//加载菜单
    var eacoo_tab_content_height = $('.eacoo-tab-content').height();
    (function ($) {
        //加载上次页面窗口
        if (localStorage.getItem('latest_iframe_tab')) {
            refreshIframe();
        }
        $("#navtab-collapse-1 iframe").load(function(){
            //autoHeight(document.getElementById(tab_name));
            //var mainheight = $(this).contents().find("body").height()+30;
            var mainheight = eacoo_tab_content_height+20;
            $(this).height(mainheight);
        });
    })(jQuery);
    
</script>